/**
 * Package:cn.tst.test;
 * $Id: Location.java,v 1.1 2008/11/11 08:30:38 yangc Exp $
 * Copyright(c) 2001-2005 www.afteryuan.com
 */
package com.afteryuan.server.support.astar;

/**
 * Location
 * <p/>
 * <p><a href="Location.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:afteryuan@afteryuan.com">$Author: yangc $</a>
 * @version $Revision: 1.1 $
 */
public class Location {
	public int x=0;
	public int y=0;

	public Location(int x,int y){
		this.x=x;
		this.y=y;
	}

	public boolean equals(Object obj){
		if ((((Location)obj).x==x)&&(((Location)obj).y==y)){
			return true;
		}
		else{
			return false;
		}
	}

	public String toString(){
		return "x="+x+" y="+y;
	}
}
